#!/usr/bin/python
# -*- coding: UTF-8 -*-

import fileinput

with fileinput.input(files="E:\learning\practice_all\Modules\Fileinput\1.txt") as f:
    for line in f:
        line = line.rstrip()
        num = fileinput.lineno()
        print("#%d\t%s" %(num, line))